<?php

class dayworkViewModel extends ViewModel
{
	 public $viewFields = array(
	    'employee' => array('id'=>'employeeID','name'=>'employeeName','_as'=>'e'),
	    'dayworktype' => array('id'=> 'typeID','name' => 'typeName','_as'=>'t'),
	    'daywork'=>array('*', "_as" => "d", '_on' => 't.id=d.classid and d.adduser=e.id','_type'=>'LEFT'),
	 );
}


?>